Continous Ping with User Input - Python